decode with raw Class type works as before